import { PositionArray } from "./Circle";

export const drawRect = (size: number): PositionArray[] => {
    // 不使用 Matrix 类
    const result: PositionArray[] = [];
    const left = Math.floor(size - 1);
    for (let x = -left; x <= left; x++) {
        for (let y = -left; y <= left; y++) {
            result.push([x, y, (Math.abs(x) + Math.abs(y)) / (2 * size)]);
        }
    }
    return result;
};
